home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1998 January / Cd Pc Users extra 16 enero 1999.iso / prog / inst / oledrop / form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  1998-04-30  |  1.1 KB  |  36 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   1095
  5.    ClientLeft      =   1620
  6.    ClientTop       =   1545
  7.    ClientWidth     =   3690
  8.    LinkTopic       =   "Form1"
  9.    OLEDropMode     =   1  'Manual
  10.    ScaleHeight     =   1095
  11.    ScaleWidth      =   3690
  12.    Begin VB.Label Label1 
  13.       Caption         =   "Drag and drop files onto this form. The form will list the files and take no other action."
  14.       Height          =   495
  15.       Left            =   240
  16.       TabIndex        =   0
  17.       Top             =   240
  18.       Width           =   3135
  19.    End
  20. Attribute VB_Name = "Form1"
  21. Attribute VB_GlobalNameSpace = False
  22. Attribute VB_Creatable = False
  23. Attribute VB_PredeclaredId = True
  24. Attribute VB_Exposed = False
  25. Option Explicit
  26. Private Sub Form_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
  27. Dim txt As String
  28. Dim fname As Variant
  29.     For Each fname In Data.Files
  30.         txt = txt & fname & vbCrLf
  31.     Next fname
  32.     MsgBox txt
  33.     ' Indicate we did nothing with the files.
  34.     Effect = vbDropEffectNone
  35. End Sub
  36.